# print("hello missing")
# # print("hello missing")
# print("---------------------------------------------")
# number="DH202312180001"
# time="2023-09-23 08:56:14"
# print("单号："+number)
# print("时间："+time)
# print("---------------------------------------------")
# name1="闪迪U盘 32G"
# name2="金士顿U盘 32G"
# name3="读卡器"
# name4="网线2米"
# count1=1
# count2=1
# price1=40.00
# price2=50.00
# price3=8.00
# price4=5.00
# money1=40.00
# money2=50.00
# money3=8.00
# money4=5.00
# # print("名称\n",name1+"数量\n"+str(count1)+"单价：\n"+price1+"金额：\n"+money1)
# print(f'''
# 名称        数量   单价    金额
# {name1}   {count1}   {price1}   {money1}
# {name2}  {count1}   {price2}  {money2}
# {name3}        {count1}    {price3}   {money3}
# {name4}       {count1}    {price4}   {money4}''')
# print("---------------------------------------------")
# print('''总数:4       总额：103.00
# 折后总额：103.00
# 实收：103.00  找零：0.00
# 收银：管理员''')
# print("---------------------------------------------")
#
#
# print("{:<12}{:^10}{:^8}{:^6}".format("姓名", "数量", "单价", "金额"))
#
# print("{:<12}{:^10}{:<8}{:>6}".format("闪迪U盘 32G", " 1", "40.00", "40.00"))
#
# print("{:<12}{:^10}{:<8}{:>6}".format("金士顿U盘 32G", "1", "50.00", "50.00"))
#
# print("{:<12}{:^10}{:<8}{:>6}".format("读卡器", " 1" ,"8.00","8.00"))
#
# print("{:<12}{:^10}{:<8}{:>6}".format("网线2米", " 1", "5.00", "5.00"))
#
#12-20日练习
#元组
# 使用切片访问
# course_tuple = ('java','bigdata','test','html')
# print(course_tuple[:3])
# print(course_tuple[1:3])
# print(course_tuple[0:3:2])

course_tuple = ('java','bigdata','test','html',1,2,3,4,5,6,7,8,9,0)
# print(course_tuple[:5])
# print(course_tuple[1:5])
# print(course_tuple[1:7:4])
# print(course_tuple[2:9:3])
# print(course_tuple[4:9:4])

#字典
# d_a = dict()
# d_b = dict(a=111)
# print(d_a)
# print(d_b)
### d_c=dict(input('请输入键：'),"=",int(input('请输入值：')))#验证为错误
#法2
key=input('请输入键：')
value=int(input('请输入值：'))
d_c=dict(key=value)#结果为错，因为字典中的key值是不可变的
print('字典数据类型为',d_c)
